<?php
include_once '../config/siteConf.php';
function sendActivation($to, $subject, $body) {
	require_once '../classes/mailClass.php';
	$from = $mailFromEmail;
	$mail = new PHPMailer ();
	$mail->IsSMTP ( true ); // use SMTP
	$mail->IsHTML ( true );
	$mail->SMTPAuth = true; // enable SMTP authentication
	$mail->Host = $mailServer; // SMTP host
	$mail->Port = $mailSmtpPort; // set the SMTP port
	$mail->Username = $mailServerUsername; // SMTP username
	$mail->Password = $mailServerPassword; // SMTP password
	$mail->SetFrom ( $from, $mailSetFromName );
	// $mail->AddReplyTo($from,'Ole Eivind Parken');
	$mail->AddReplyTo ( $mailReplyToAdress, $mailReplyToName );
	$mail->Subject = $subject;
	$mail->MsgHTML ( $body );
	$address = $to;
	$mail->AddAddress ( $address, $to );
	$mail->Send ();
}

?>